
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
 
namespace MaxLeaf.Platform.DataContract
{
    [Serializable]
    [DataContract]
    [CommonsLib.ORM.DataTable(DBName = "MaxleafSCPBase", TableName = "goods_price", KeyPropName = "Key", ForeignKeyPropName = "ForeignKey")]
    public class goods_priceDataModel : BaseDataModel
    {
        [DataMember]
        [CommonsLib.ORM.DataField("price_id", true)]
        public int Key {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("goods_id", "int", 4)]
        public int ForeignKey { get; set; }

        [DataMember]
        [CommonsLib.ORM.DataField("area_id", "int", 4)]
        public int area_id {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("measure_unit_id", "int", 4)]
        public int measure_unit_id {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("price", "decimal", 9)]
        public double price {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("purchase_price", "decimal", 9)]
        public double purchase_price {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("lowest_price", "decimal", 9)]
        public double lowest_price {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("create_time", "int", 8)]
        public int create_time { get; set; }


        public override string ToString()
        {
            return string.Format("{0}.{1}", "goods_price", this.Key);
        }
    }
}
            